import os

import pytest

if __name__ == '__main__':
    file_path = os.path.join(os.path.dirname(__file__),'case.py')
    format_list = [
        '-vs',
        '--report=report.html',
        '--title=登陆测试报告',
        '--tester=黎建伟',
        '--desc=报告描述信息',
        file_path + '::TestLogin',
        file_path+ '::TestProject'
    ]
    pytest.main(format_list)


